package com.zp.self.module.level_5_设计模式.结构型模式.Ⅲ_装饰模式;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/6/29 21:10
 * @description ：主食
 */
@Setter
@Getter
public abstract class StapleFood {
    public StapleFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    private float price ;
    private String desc ;

    public  float cost(){
        return getPrice();
    }

}
